package com.xy.biz.mes.domain.enums;

import com.xy.lang.enums.CodeEnum;

/**
 * 类型：1-产品，2-物料
 */
public enum ManufactureGoodsTypeEnum implements CodeEnum {
    PRODUCTION(1, "生产项目"),
    MATERIAL(2, "生产物料");

    private int code;
    private String name;

    ManufactureGoodsTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
